package com.greate.community.service;

import com.greate.community.entity.Comment;
import com.greate.community.util.CommunityConstant;

import java.util.List;

public interface CommentService extends CommunityConstant {

    Comment findCommentById(int id);
    List<Comment> findCommentByEntity(int entityType, int entityId, int offset, int limit);
    int findCommentCount(int entityType, int entityId);
    List<Comment> findCommentByUserId(int userId, int offset, int limit);
    int findCommentCountByUserId(int userId);
    int addComment(Comment comment);

}
